package com.tonann.app.service;

import com.tonann.app.domain.AppEnergyCaculatedRule;

import java.util.List;

/**
 * 运算规则Service接口
 *
 * @author tonann
 * @date 2022-10-21
 */
public interface IAppEnergyCaculatedRuleService {
    /**
     * 查询运算规则
     *
     * @param ruleId 运算规则主键
     * @return 运算规则
     */
    public AppEnergyCaculatedRule selectAppEnergyCaculatedRuleByRuleId(Long ruleId);

    /**
     * 查询运算规则列表
     *
     * @param appEnergyCaculatedRule 运算规则
     * @return 运算规则集合
     */
    public List<AppEnergyCaculatedRule> selectAppEnergyCaculatedRuleList(AppEnergyCaculatedRule appEnergyCaculatedRule);

    /**
     * 新增运算规则
     *
     * @param appEnergyCaculatedRule 运算规则
     * @return 结果
     */
    public int insertAppEnergyCaculatedRule(AppEnergyCaculatedRule appEnergyCaculatedRule);

    /**
     * 修改运算规则
     *
     * @param appEnergyCaculatedRule 运算规则
     * @return 结果
     */
    public int updateAppEnergyCaculatedRule(AppEnergyCaculatedRule appEnergyCaculatedRule);

    /**
     * 批量删除运算规则
     *
     * @param ruleIds 需要删除的运算规则主键集合
     * @return 结果
     */
    public int deleteAppEnergyCaculatedRuleByRuleIds(Long[] ruleIds);

    /**
     * 删除运算规则信息
     *
     * @param ruleId 运算规则主键
     * @return 结果
     */
    public int deleteAppEnergyCaculatedRuleByRuleId(Long ruleId);
}
